﻿<UserControl
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
	xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
	xmlns:local="clr-namespace:EIA.SLClient.ProjectManage.Financial"
	xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk" xmlns:i="http://schemas.microsoft.com/expression/2010/interactivity" xmlns:ei="http://schemas.microsoft.com/expression/2010/interactions"
	mc:Ignorable="d"
	x:Class="EIA.SLClient.ProjectManage.Financial.InvoiceEditView"
	d:DesignWidth="600" d:DesignHeight="480">
	<UserControl.Resources>
		<local:InvoiceEditViewModel x:Key="InvoiceEditViewModelDataSource" />
	</UserControl.Resources>

	<Grid x:Name="LayoutRoot" DataContext="{Binding Source={StaticResource InvoiceEditViewModelDataSource}}">
        <Grid Background="#19000000" Visibility="{Binding IsShow, Converter={StaticResource Bool2VisibilityConverter}}">
            <Grid HorizontalAlignment="Center" VerticalAlignment="Center" Width="248" Height="184" Background="#FFEBEBEB">
                <Grid.ColumnDefinitions>
                	<ColumnDefinition Width="80"/>
                	<ColumnDefinition/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                	<RowDefinition Height="24"/>
                	<RowDefinition Height="Auto" MinHeight="32"/>
                	<RowDefinition Height="Auto" MinHeight="32"/>
                	<RowDefinition Height="Auto" MinHeight="32"/>
                	<RowDefinition Height="40"/>
                </Grid.RowDefinitions>
                <Grid Background="#FF888888" Grid.ColumnSpan="2">
                    <TextBlock HorizontalAlignment="Left" Margin="8,0,0,0" TextWrapping="Wrap" Text="{Binding TitleTip}" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                </Grid>
                <TextBlock Margin="0" Grid.Row="1" TextWrapping="Wrap" Text="开票号码" HorizontalAlignment="Right" VerticalAlignment="Center"/>
                <TextBlock Grid.Row="2" TextWrapping="Wrap" Text="开票金额" HorizontalAlignment="Right" d:LayoutOverrides="Height" VerticalAlignment="Center"/>
                <TextBox Grid.Column="1" Margin="8,8,0,8" Grid.Row="1" TextWrapping="Wrap" VerticalAlignment="Center" Width="90" HorizontalAlignment="Left" Text="{Binding Model.InvoiceNo, Mode=TwoWay}"/>
                <TextBox Grid.Column="1" Margin="8,8,0,8" Grid.Row="2" TextWrapping="Wrap" Width="54" HorizontalAlignment="Left" d:LayoutOverrides="HorizontalAlignment, Height" Text="{Binding Model.InvoiceAmount, Mode=TwoWay}"/>
                <HyperlinkButton Content="取消" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Right" Margin="0,12,18,12" Command="{Binding CancelCommand}" d:LayoutOverrides="Height"/>
                <HyperlinkButton Content="确定" Grid.Column="1" Grid.Row="4" Margin="0,12,70,12" HorizontalAlignment="Right" Command="{Binding SaveCommand}" d:LayoutOverrides="Height"/>
                <TextBlock Grid.Row="3" TextWrapping="Wrap" Text="开票时间" HorizontalAlignment="Right" VerticalAlignment="Center"/>
                <sdk:DatePicker Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" Margin="8,8,0,8" x:Name="datePicker1" VerticalAlignment="Center" Width="120" SelectedDate="{Binding Model.InvoiceDate, Mode=TwoWay}" />
                <TextBlock Grid.Column="1" Margin="66,12,0,12" Grid.Row="2" TextWrapping="Wrap" Text="(万元)" HorizontalAlignment="Left" d:LayoutOverrides="Height"/>
            </Grid>
        </Grid>
	</Grid>
</UserControl>
